package cn.lizemin.prototype.origin;

/**
 * @author lzm
 * @version 1.0
 * @description: 敌机类
 * @date 2022/5/20 9:43
 */
public class EnemyPlane {
    /**敌机横坐标*/
    private Integer x ;

    /**敌机纵坐标*/
    private Integer y ;

    public EnemyPlane(Integer x) {
        this.x = x;
        this.y = 0;
    }

    public Integer getX() {
        return x;
    }

    public Integer getY() {
        return y;
    }

    public void fly() {
        y++;//每调用一次，敌机飞行时，纵坐标+1
    }

}
